<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>滴滴驾校欢迎您</title>
<link type="text/css" rel="stylesheet" href="../css/style.css" />
<script type="text/javascript" src="../js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="../js/menu.js"></script>
<script>
	function statusPanduan(status){
		if(status=="已激活"){
			$choiceForm = $("#choiceForm");
			$choiceForm.submit();
		}else{
			alert("请先在激活页面完成激活操作");
		}
	}
	
	function statusPanduan2(status){
		if(status=="已激活"){
			$choiceForm = $("#choiceForm2");
			$choiceForm.submit();
		}else{
			alert("请先在激活页面完成激活操作");
		}
	}
	
	
	function getTime(){
		$.ajax({
			type:"OPTIONS",
			url:"/",
			complete:function(x){
				date = x.getResponseHeader("Date");
				nDate = date+(3600000*8);
				time = new Date(nDate);
				}
		})
		$("#td").text(time);
	}
	
	function times(){
		setInterval(getTime, 1000)
	}
	
	window.onload = times;
</script>
</head>

<body>
<div class="top"></div>
<div id="header">
	<div class="logo">滴滴驾校学员</div>
	<div class="navigation">
		<ul>
		 	<li>欢迎您！</li>
		 	<li><img style="width: 50px; height: 50px; border-radius:8px" src="${user.picPath }"/></li>
			<li>${user.name }</li>
			<li><a href="">设置</a></li>
			<li><a href="">退出</a></li>
		</ul>
	</div>
	<div id="td" style="color: #fff"></div>
</div>
<div id="content">
	<div class="left_menu">
				<ul id="nav_dot">
      <li>
          <h4 class="M1"><span></span>系统公告</h4>
          <div class="list-item none">
            <a href='../view/uview/blank.jsp' target="iframePart">系统公告</a>
            <a href=''>系统公告</a>
            <a href=''>系统公告</a>
          </div>
        </li>
        <li>
          <h4 class="M2"><span></span>个人管理</h4>
          <div class="list-item none">
            <a href="../view/uview/changepwd.jsp" target="iframePart">修改密码</a>
            <a href='../view/uview/updateUser.jsp' target="iframePart">修改个人信息</a>
            <a href='User_goDoActive' target="iframePart">激活</a>
            <a href='../view/uview/upPic.jsp' target="iframePart">上传头像</a>
           </div>
        </li>
        <li>
          <h4 class="M3"><span></span>练习题库</h4>
          <div class="list-item none">
            <a href="User_showPartQuestion" target='iframePart'>精选试题</a>
            <form id="choiceForm" action="User_showChoiceQuestion" method="post" target="iframePart">
            </form>
            <a onclick="statusPanduan('${user.status}')" style="cursor: pointer;">选择题</a>
            <form id="choiceForm2" action="User_showPanduanQuestion" method="post" target="iframePart">
            </form>
            <a onclick="statusPanduan2('${user.status}')" style="cursor: pointer;">判断题</a>
          </div>
        </li>
				<li>
          <h4 class="M4"><span></span>考试系统</h4>
          <div class="list-item none">
          	<a href='../view/uview/testKnow.jsp' target="iframePart">报考须知</a>
            <a href='../view/uview/testSign.jsp' target="iframePart">考试报名</a>
            <a href='User_checkInfo?phone=${user.phoneNumber }' target="iframePart">参加考试</a>
          </div>
        </li>
				<li>
          <h4 class="M5"><span></span>其他模块</h4>
          <div class="list-item none">
            <a href=''>其他模块</a>
            <a href=''>其他模块</a>
            <a href=''>其他模块</a>
          </div>
        </li>
				<li>
          <h4  class="M6"><span></span>其他模块</h4>
          <div class="list-item none">
            <a href=''>其他模块</a>
            <a href=''>其他模块</a>
            <a href=''>其他模块</a>
          </div>
        </li>
				<li>
          <h4  class="M7"><span></span>其他模块</h4>
          <div class="list-item none">
            <a href=''>其他模块</a>
            <a href=''>其他模块</a>
            <a href=''>其他模块</a>
          </div>
        </li>

  </ul>
		</div>
		<div class="m-right">
			<div class="main">
				<iframe src="../view/uview/blank.jsp" name="iframePart" width="100%" height="100%">
				</iframe>
			</div>
		</div>
</div>
<div class="bottom"></div>
<div id="footer"><p>Copyright© 2016</p></div>
<script>navList(12);</script>
</body>
</html>
